<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <section>
        <ul>
            <li>
                <a href="">新闻1</a>
                <a href="">新闻2</a>
                <a href="">新闻3</a>
                <a href="">新闻4</a>
            </li>
            <li>
                <a href="">商品列表</a>
                <a href="">食品分类</a>
            </li>
            <li>
                <p>111</p>
            </li>
        </ul>
    </section>
    <script src="/jquery.js"></script>
    <script>
        console.log($('section a'));//后代选择器，选中所有的后代
        console.log($('ul>li'));//子选择器，选中所有的儿子
        console.log($('li+li'));//选中所有的跟着li的兄弟
        console.log($('li~li'));//同辈选择器，选中li所有的同辈
    </script>
</body>
</html>